# 创建/etc/init.d/rcS 文件
echo "#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

mount -a        # 挂载所有/etc/fstab文件里列出的文件系统
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock

ifconfig lo 127.0.0.1
#ifconfig eth0 10.238.233.5

/bin/hostname -F /etc/sysconfig/HOSTNAME" > rootfs/etc/init.d/rcS
chmod +x rootfs/etc/init.d/rcS